#ifndef ZHONGZHI_H
#define ZHONGZHI_H
#include "gamepersent.h"
#include "CallBack.h"
#include "QRunnable"

class ZhongZhi: public GamePersent,public CallBack,public QRunnable
{
    Q_OBJECT
public:
    long ctopTime; //农作物成熟时间
    QList<RoleBean*> *roleBeans;

public:
    explicit ZhongZhi(QWidget *parent = nullptr);
    void initData(QList<RoleBean*> *roleBeans);
    void harvest();
    void callBack(QString str = "") override;
    bool isCancelTask() override;
    void run() override;
};

#endif // ZHONGZHI_H
